#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CMULTILINEEDITUI_MULTILINEEDITUI_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CMULTILINEEDITUI_MULTILINEEDITUI_H

#include "ControlUI.h"

class CMultiLineEditWnd;

class CMultiLineEditUI:public CControlUI
{
	friend CMultiLineEditWnd;
public:
	CMultiLineEditUI(void);
	virtual ~CMultiLineEditUI(void);
	LPCTSTR GetClass() const;
	UINT GetControlFlags() const;

	void Init();

	CStdString GetText() const;
	void SetText(LPCTSTR pstrText);

	void SetEnabled(bool bEnabled);
	void SetVisible(bool bVisible);
	void SetReadOnly(bool bReadOnly);
	void SetFocus(bool bReadOnly);
	bool IsReadOnly() const;

	void Event(TEventUI& event);

	SIZE EstimateSize(SIZE szAvailable);
	void SetPos(RECT rc);
	void SetPos(int left, int top, int right, int bottom);
	void DoPaint(HDC hDC, const RECT& rcPaint);

protected:
	CMultiLineEditWnd* m_pWindow;
};
#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_CMULTILINEEDITUI_MULTILINEEDITUI_H
